package com.cyh;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yanhuche on 11/7/2016.
 */
public class EqualSign__Equals_2 {


    @Test
    public void test_01() {
        List<FileType> fileTypeList = new ArrayList<>();
        fileTypeList.add(FileType.aggregation);
        fileTypeList.add(FileType.kpi);

        System.out.println(fileTypeList.get(0) == FileType.aggregation);
        System.out.println(fileTypeList.get(0).equals(FileType.aggregation));

        System.out.println(fileTypeList.get(1) == FileType.kpi);
        System.out.println(fileTypeList.get(1).equals(FileType.kpi));
    }



    enum FileType {
        aggregation, kpi
    }

}
